package o;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.huawei.appmarket.framework.coreservice.Status;

public interface dgz extends IInterface {

    public static abstract class e extends Binder implements dgz {

        static class d implements dgz {
            private IBinder ˊ;

            d(IBinder iBinder) {
                this.ˊ = iBinder;
            }

            public IBinder asBinder() {
                return this.ˊ;
            }

            public void ॱ(Status status) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.appmarket.framework.coreservice.IAppGalleryCallback");
                    if (status != null) {
                        obtain.writeInt(1);
                        status.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.ˊ.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public e() {
            attachInterface(this, "com.huawei.appmarket.framework.coreservice.IAppGalleryCallback");
        }

        public static dgz ˊ(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.huawei.appmarket.framework.coreservice.IAppGalleryCallback");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof dgz)) {
                return new d(iBinder);
            }
            return (dgz) queryLocalInterface;
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.huawei.appmarket.framework.coreservice.IAppGalleryCallback";
            switch (i) {
                case 1:
                    Status status;
                    parcel.enforceInterface(str);
                    if (parcel.readInt() != 0) {
                        status = (Status) Status.CREATOR.createFromParcel(parcel);
                    } else {
                        status = null;
                    }
                    ॱ(status);
                    parcel2.writeNoException();
                    return true;
                case 1598968902:
                    parcel2.writeString(str);
                    return true;
                default:
                    return super.onTransact(i, parcel, parcel2, i2);
            }
        }
    }

    void ॱ(Status status) throws RemoteException;
}
